import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useUsereStore = defineStore(
  "userInfo",
  () => {
    const userInfo = ref({
      accountId: 0,
      nickname: "",
      roleId: 0,
      roleName: "",
      token: "",
    });

    return { userInfo };
  },
  {
    persist: true,
  }
);